import request from "@/request/request.js";

export function findStudent(data) {
  return request({
    url: '/points-student/student/find',
    method: 'post',
    data:data
  })
}

export function jiafen(id,score) {
  return request({
    url: `/points-student/student/addPoints?id=${id}&newPoints=${score}`,
    method: 'post',
  })
}
export function jianfen(id,score) {
  return request({
    url: `/points-student/student/delPoints?id=${id}&newPoints=${score}`,
    method: 'post',
  })
}
export function addLog(data) {
  return request({
    url: '/points-student/student/addLog',
    method: 'post',
    data:data
  })
}
